//
//  AboutLoveHealth.m
//  LoveHealth
//
//  Created by lanou3g on 14-9-23.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "AboutLoveHealth.h"

@implementation AboutLoveHealth
- (void)dealloc
{
    self.label = nil;
    self.label2 = nil;
    self.label3 = nil;
    //self.label4 = nil;
    self.label5 = nil;
    self.label6 = nil;
 
    [super dealloc];
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self setupSubviews];
    }
    return self;
}
- (void)setupSubviews
{
    self.backgroundColor = [UIColor whiteColor];
    _label = [[UILabel alloc] initWithFrame:CGRectMake(100, 60, 120, 30)];
    [self addSubview:_label];
    _label.text = @"关于爱健康";
    _label.tintColor = [UIColor blackColor];
    _label.font = [UIFont systemFontOfSize:25];
    _label.textAlignment = NSTextAlignmentCenter;
    [_label sizeToFit];
    
    _label2 = [[UILabel alloc]initWithFrame:CGRectMake(20, 100, 280, 120)];
    [self addSubview:_label2];
    _label2.text = @"       爱健康致力于为您的健康提供及时的新闻资讯、保健方法以及良好的饮食习惯，让每一个人都拥有健康的身体。如果您有好的改进建议可以反馈给我们，在此对您表示感谢！";
    _label2.numberOfLines = 0;
    
    
    _label3 = [[UILabel alloc]initWithFrame:CGRectMake(20, 215, 300, 60)];
    [self addSubview:_label3];
    _label3.text = @"联系QQ:164437104,2465874828,1066433400";
    _label3.numberOfLines = 0;
    [_label3 sizeToFit];
//    _label4 = [[UILabel alloc]initWithFrame:CGRectMake(20, 240, 200, 30)];
//    [self addSubview:_label4];
//    _label4.text = @"官方微博：sb@sina.com";
    
    _label5 = [[UILabel alloc]initWithFrame:CGRectMake(0, 320, 320, 20)];
    [self addSubview:_label5];
    _label5.text = @"版本号：V1.0";
    _label5.font = [UIFont systemFontOfSize:12];
    _label5.textAlignment = NSTextAlignmentCenter;
    
    _label6 = [[UILabel alloc]initWithFrame:CGRectMake(0, 340, 320, 20)];
    [self addSubview:_label6];
    _label6.text = @"Copyright © 2014-2014 爱健康";
    _label6.textAlignment = NSTextAlignmentCenter;
    _label6.font = [UIFont systemFontOfSize:12];


    
    _button = [UIButton buttonWithType:UIButtonTypeSystem];
    _button.frame = CGRectMake(100, 440, 120, 30);
    [_button setTitle:@"返回" forState:UIControlStateNormal];
    [self addSubview:_button];
    //_button.backgroundColor = [UIColor redColor];
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
